<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>气度网 - 气度如水</title>
    <link type="text/css" rel="stylesheet" href="${ctx}/css/public_info.css" >
    <link rel="stylesheet" href="${ctx}/js/editor/jquery.wysiwyg.css" type="text/css"/> 
	<link rel="stylesheet" href="${ctx}/js/editor/help/lib/ui/jquery.ui.all.css" type="text/css"/> 
	<link rel="stylesheet" href="${ctx}/js/editor/help/lib/ui/jquery.ui.dialog.css" type="text/css"/> 
	<link rel="stylesheet" href="${ctx}/js/editor/help/lib/blueprint/ie.css" type="text/css" media="screen, projection" />
	<script type="text/javascript" src="${ctx}/js/editor/help/lib/jquery.js"></script> 
	<script type="text/javascript" src="${ctx}/js/editor/jquery.wysiwyg.js"></script> 
	<script type="text/javascript" src="${ctx}/js/editor/help/lib/ui/jquery.ui.core.js"></script> 
	<script type="text/javascript" src="${ctx}/js/editor/help/lib/ui/jquery.ui.widget.js"></script> 
	<script type="text/javascript" src="${ctx}/js/editor/help/lib/ui/jquery.ui.position.js"></script> 
	<script type="text/javascript" src="${ctx}/js/editor/help/lib/ui/jquery.ui.dialog.js"></script> 
	<script type="text/javascript" src="${ctx}/js/editor/controls/wysiwyg.image.js"></script> 
	<script type="text/javascript" src="${ctx}/js/editor/controls/wysiwyg.table.js"></script> 
	<script type="text/javascript" src="${ctx}/js/editor/controls/wysiwyg.link.js"></script> 
 
	<script type="text/javascript"> 
    (function($) {
        $(document).ready(function() {
            $('#detail').wysiwyg({
                autoload: false,
                controls: {
                "html": {visible: true}
                }
            });
        });
    })(jQuery);
    </script>
</head>

<body>
	<s:if test="#session.login_user.category == 0">
	<form action="${ctx}/my/publicInfo" method="post" enctype ="multipart/form-data">
	</s:if>
	<s:else>
	<form action="${ctx}/my/publicInfo" method="post" enctype ="multipart/form-data">
	</s:else>
	<div class="public_info">
    	<div class="news_title">
        	<div class="title">标题</div>
        	<div class="info"><input id="title" name="news.title" maxlength="50"/></div>
            <div class="clear"></div>
        </div>
        <div class="sort">
        	<div class="title">类别</div>
        	<div class="info">
                <select name="news.sort">
                	<s:iterator value="sortList" var="sort">
                    	<option value="<s:property value="#sort.typeCode"/>"><s:property value="#sort.typeName"/></option>
                    </s:iterator>
                </select>
            </div>
            <div class="clear"></div>
        </div>
        <div class="news_summary">
        	<div class="title">简要概述</div>
        	<div class="info"><textarea id="summary" name="news.summary" >简要描述</textarea></div>
            <div class="clear"></div>
        </div>
        <div class="news_pic">
        	<div class="title">上传图片</div>
        	<div class="info">
        		<input type="file" name="myFile" accept="image/gif, image/jpeg"/> <font color="red">图片规格：不大于100KB，200X200的jpg或gif格式图片</font>
        	</div>
            <div class="clear"></div>
        </div>         
        <div class="edit">
			<textarea name="news.detail" id="detail"></textarea>
            <div class="clear"></div>      
        </div> 
        <div class="btn">
            <input type="submit" value="发布"/><input type="reset" value="重置"/>
        </div>              
	</div>        
	</form>
</body>
</html>
